package com.list.arraylist;

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class PallindromeTest {
public static void main(String[] args)throws Exception {
	BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
	System.out.println("Enter the data");
	int num=Integer.parseInt(br.readLine());
	int rem,rev=0,temp;
	temp=num;
	while(temp>0){
		rem=temp%10;
		rev=rev*10+rem;
		temp=temp/10;
	}
	System.out.println(rev);
	if(num==rev){
		System.out.println("Pallindrome");
	}else{
		System.out.println("not pallindrome");
	}
}
}
